import instance from "@/http";

// 资源信息分页
export const  templatePage = (searchParams)=>instance.post('/template/page',searchParams)


// 资源上传
export const  uploadTemplates = (formData)=>instance.post('/template/upload',formData)

// 添加资源信息
export const  addTemplateInfo=(form)=>instance.post('/template/add',form)

// 删除资源
export const deleteTemplate = (uuid)=>instance.delete('/template/delete/'+uuid)

// 下载资源
export const downTemplate = (uuid)=>instance.post('/template/download',uuid,{responseType:'arraybuffer'})